
public class ForLoopastrickPatternDemo {

	public static void main(String[] args) {
		// star pattern

		for (int i=1; i<=9; i = i+2)
			
		{
			
			for (int count = 1; count<=i; count++)
			
			{ 
				System.out.print("*");
			
			}
			
			System.out.println();
		}
	}

}
